import java.util.*;

// https://www.nowcoder.com/practice/fcd30aac9c4f4028b23919a0c649824d?tpId=290&tqId=39833&ru=/exam/oj
public class Practice2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        char[] ss = sc.next().toCharArray();
        int n = ss.length;
        StringBuilder sb = new StringBuilder();
        for(int i = 0;i < n;i++){
            int cur = ss[i] - '0';
            if(cur % 2 == 0){
                if(sb.length() != 0){
                    sb.append(0);
                }
            }else{
                sb.append(1);
            }
        }
        if(sb.length() == 0){
            System.out.println(0);
        }else{
            System.out.println(sb.toString());

        }
    }
}